package in.freshstart.java.training.conditions;

public class ConvertUpperCaseCharToLowerCaseChar {
	public static void main(String[] args) {
		char uppercaseLetter = 'B';
		int i = (int) uppercaseLetter;
		char lowercaseLetter;

		System.out.println("Unicode value for given alphabet is " + i);
		if (i >= 65 && i <= 91) {
			lowercaseLetter = (char) (uppercaseLetter + 32);
			System.out.println("Lower case Letter is " + lowercaseLetter);
		}
		else if(i>=97&&i<=123)
		{
			System.out.println("u have given lower case letter only");
			System.out.println("please give upper case letter");
		}
		else
		{
			System.out.println("please give valid Uppercase alphabet");
		}
	}

}
